<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>分类</title>

  <link rel="stylesheet" href="./lib/fontawesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/category.css">

</head>
<body>
  

  <!-- header -->
  @@include('header.html')


  <!-- 页面 -->
  <div class="view">
    <!-- 左边列表 -->
    <div class="left">
      <ul class="left_wrap"></ul>
    </div>

    <!-- 右边列表数据 -->
    <div class="right">
      <div class="right_container"></div>
    </div>

  </div>


  <!-- footer -->
  @@include('footer.html', {"index":"1"})
  


</body>

<script src="./lib/mui/js/mui.min.js"></script>
<script src="./lib/zepto/zepto.js"></script>
<script src="./lib/arttemplate/template-web.js"></script>
<script src="./lib/iscroll/iscroll.js"></script>
<script src="./js/common.js"></script>
<script src="./js/category.js"></script>


</html>

<!-- 列表右侧模板 -->
<script type="text/html" id="rightTpl">

  {{each arr item index}}
  <div class="right_wrap">
    <div class="title"><span>{{item.cat_name}}</span></div>
    <ul>
      {{each item.children item1 index1}}
      <li><a href="goods.html?cid={{item1.cat_id}}"><img src="{{$imports.BaseUrl}}{{item1.cat_icon}}" alt=""><span>{{item1.cat_name}}</span></a></li>
      {{/each}}
    </ul>
  </div>
  {{/each}}

</script>